package com.bdqn.carrental.service;

import com.bdqn.carrental.dao.UserMapper;
import com.bdqn.carrental.pojo.UserEntity;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@MapperScan("com.bdqn.carrental.dao")
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public List<UserEntity> findAll() {
      List<UserEntity> list=userMapper.findAll();
        return list;
    }
}
